// src/main/java/cn/edu/tju/elm/model/dto/UnfreezeRequestDTO.java
package cn.edu.tju.elm.model.dto;

public class UnfreezeRequestDTO {
    private Long userId;
    private String orderId;

    public UnfreezeRequestDTO() {}

    public void validate() {
        if (userId == null) {
            throw new IllegalArgumentException("用户ID不能为空");
        }
        if (orderId == null || orderId.trim().isEmpty()) {
            throw new IllegalArgumentException("订单ID不能为空");
        }
    }

    public Long getUserId() { return userId; }
    public void setUserId(Long userId) { this.userId = userId; }

    public String getOrderId() { return orderId; }
    public void setOrderId(String orderId) { this.orderId = orderId; }
}